package routers

import (
	beego "github.com/beego/beego/v2/server/web"
	"sheng/controllers"
)

func init() {
	beego.Router("/", &controllers.MainController{})
	beego.Router("/register", &controllers.MainControll{}, "post:Register")
	beego.Router("/login", &controllers.MainControll{}, "post:Login")
	beego.Router("/add", &controllers.MainControll{}, "post:Add")
	beego.Router("/addpeople", &controllers.MainControll{}, "post:Addpeople")
	beego.Router("/upload", &controllers.MainControll{}, "post:Upload")
	beego.Router("/limit", &controllers.MainControll{}, "post:Limit")
	beego.Router("/list", &controllers.MainControll{}, "post:List")
	beego.Router("/first", &controllers.MainControll{}, "post:First")
	beego.Router("/del", &controllers.MainControll{}, "post:Del")
}
